package cn.gson.springboot.model.dao.cusdao;

import cn.gson.springboot.model.pjos.Culinkman;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;

public interface CulinkmanDao extends CrudRepository<Culinkman,Integer> {
//    修改联系人的对应客户
    @Modifying
    @Query(nativeQuery = true,value = "update culinkman set custom_id = ?1 where custom_id = ?2")
    public void upCustomer(Integer daoId,Integer congId);
}
